package com.wicket.okrcomponent.biz.service.impl;

import cn.hutool.core.bean.BeanUtil;
import com.wicket.okrcomponent.biz.service.dto.req.*;
import com.wicket.okrcomponent.biz.service.dto.res.*;
import com.wicket.okrcomponent.common.exception.BizException;
import com.wicket.okrcomponent.common.util.CommonFunctionHelper;
import com.wicket.okrcomponent.common.util.RedisUtil;
import java.util.List;
import java.util.stream.Collectors;
import javax.annotation.Resource;
import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
import org.apache.skywalking.apm.toolkit.trace.Trace;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.wicket.okrcomponent.common.exception.Assert;
import com.wicket.okrcomponent.biz.service.nb.NbDashboradStandardData;
import com.wicket.okrcomponent.biz.service.BusinessAtomService;
import com.wicket.okrcomponent.biz.service.dto.common.DashboardOneMenuDto;
import cn.hutool.core.collection.CollectionUtil;
import com.wicket.okrcomponent.biz.service.ConfSchemeService;
import com.wicket.okrcomponent.biz.service.dto.common.DashboardTwoMenuDto;
import com.wicket.okrcomponent.biz.service.InterfaceModeService;
import com.wicket.okrcomponent.biz.service.DashboardOrgService;
import com.wicket.okrcomponent.base.service.MCustomFields3Service;

/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@Service
public class DashboradStandardDataServiceImpl
  implements com.wicket.okrcomponent.biz.service.DashboradStandardDataService {

  @Resource
  private RedisUtil redisUtil;
//@Resource
 //private MCustomFields5Service mCustomFields5Service;
@Resource
  private NbDashboradStandardData nbDashboradStandardData;
@Resource
  private BusinessAtomService businessAtomService;
@Resource
  private ConfSchemeService confSchemeService;
@Resource
  private InterfaceModeService interfaceModeService;
@Resource
  private DashboardOrgService dashboardOrgService;
@Resource
  private MCustomFields3Service mCustomFields3Service;
//@Resource
 //private DashboardOrgService dashboardOrgService;
/**
   * D2生成大屏版本号(公共)[9763]
   * gen by moon at 3/6/2025, 9:35:28 PM
   */
  @Trace(operationName = "D2生成大屏版本号(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public GenerateDashboradVersionNumComRespDto generateDashboradVersionNumCom(GenerateDashboradVersionNumComReqDto reqDto){
    
      
      ImplementTenReceivingFieldRespDto receptionServiceRes_1 =null;
ImplementTimeFormatConversionRespDto timeFormatConversionRes_1 =null;
//步骤0: M2执行第十接收字段（特殊方法） - implementTenReceivingField
     //ModelCode: receptionService
        ImplementTenReceivingFieldRespDto receptionServiceRes = null;
    ImplementTenReceivingFieldReqDto receptionServiceReq=new ImplementTenReceivingFieldReqDto();
  receptionServiceReq.setDashboradDataVersionNum("BV"+CommonFunctionHelper.getUid());//AUTO_GENERATE//sourceId:1856882_1
  
    /*M2生成大屏版本号[8782]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getDashboradDataVersionNum(),"D2生成大屏版本号(公共)-M2生成大屏版本号-大屏数据版本号不能为空",false);
      receptionServiceRes = nbDashboradStandardData.implementTenReceivingField(receptionServiceReq);
      
      
      receptionServiceRes_1 = receptionServiceRes;
    
//步骤1: M2执行第十接收字段（特殊方法） - implementTenReceivingField
     //ModelCode: receptionService
        ImplementTenReceivingFieldRespDto receptionServiceRes_2 = null;
    ImplementTenReceivingFieldReqDto receptionServiceReq_1=new ImplementTenReceivingFieldReqDto();
  receptionServiceReq_1.setOperateTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:1917392_1

    /*M2约定当前系统时间[8782]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_1.getOperateTime(),"D2生成大屏版本号(公共)-M2约定当前系统时间-操作时间不能为空",false);
      receptionServiceRes_2 = nbDashboradStandardData.implementTenReceivingField(receptionServiceReq_1);




//步骤2: M2执行时间格式转换（特殊字段） - implementTimeFormatConversion
     //ModelCode: timeFormatConversion
        ImplementTimeFormatConversionRespDto timeFormatConversionRes = null;
    ImplementTimeFormatConversionReqDto timeFormatConversionReq=new ImplementTimeFormatConversionReqDto();
  if(receptionServiceRes_2!=null){
      timeFormatConversionReq.setComTxtField(receptionServiceRes_2.getOperateTime()!=null?String.valueOf(receptionServiceRes_2.getOperateTime()):"");//SimpleFieldAssign//sourceId:1917394_1
    }

    /*M2标准时间格式YYYY-MM-DD 00:00:00[9756]  将非标时间格式转换为标准时间格式YYYY-MM-DD 00:00:00 */
    Assert.isNull(timeFormatConversionReq.getComTxtField(),"D2生成大屏版本号(公共)-M2标准时间格式YYYY-MM-DD 00:00:00-通用文本字段不能为空",false);
      timeFormatConversionRes = nbDashboradStandardData.implementTimeFormatConversion(timeFormatConversionReq);


      timeFormatConversionRes_1 = timeFormatConversionRes;

GenerateDashboradVersionNumComRespDto retData = new GenerateDashboradVersionNumComRespDto();
  if(receptionServiceRes_1!=null){
      retData.setDashboradDataVersionNum(receptionServiceRes_1.getDashboradDataVersionNum());//SimpleFieldAssign//sourceId:1856883_1
    }
if(timeFormatConversionRes_1!=null){
      retData.setComTxtField(timeFormatConversionRes_1.getComTxtField());//SimpleFieldAssign//sourceId:1917638_1
    }


  
  
return retData;
  }
/**
   * D2新增空间大屏版本（Redis）[9758]
   * gen by moon at 7/3/2024, 9:07:17 PM
   */
  @Trace(operationName = "D2新增空间大屏版本（Redis）")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public AddSpaceDashboradVersionComRespDto addSpaceDashboradVersionCom(AddSpaceDashboradVersionComReqDto reqDto){
    
      
      //virtualUsage D2生成大屏版本号(公共)  69761
      GenerateDashboradVersionNumComRespDto generateDashboradVersionNumComRespDto = null;
    GenerateDashboradVersionNumComReqDto generateDashboradVersionNumComReqDto=new GenerateDashboradVersionNumComReqDto();
  
  
    /*D2生成大屏版本号(公共)[9763]   */
    
      generateDashboradVersionNumComRespDto = generateDashboradVersionNumCom(generateDashboradVersionNumComReqDto)/*vcase invoke 同服务,同domain*/;
      
      
      
//virtualUsage D2查询空间大屏版本（Redis）  69753
      QuerySpaceDashboradVersionDetailComRespDto querySpaceDashboradVersionDetailComRespDto = null;
    QuerySpaceDashboradVersionDetailComReqDto querySpaceDashboradVersionDetailComReqDto=new QuerySpaceDashboradVersionDetailComReqDto();
  if(reqDto!=null){
      querySpaceDashboradVersionDetailComReqDto.setBusinessDataObject(reqDto.getBusinessDataObject());//SimpleFieldAssign//sourceId:1856461_1_69753
querySpaceDashboradVersionDetailComReqDto.setDashboradTypeCode(reqDto.getDashboradTypeCode());//SimpleFieldAssign//sourceId:1856462_1_69753
querySpaceDashboradVersionDetailComReqDto.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1856463_1_69753
querySpaceDashboradVersionDetailComReqDto.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:1856466_1_69753
querySpaceDashboradVersionDetailComReqDto.setRoleCode(reqDto.getRoleCode());//SimpleFieldAssign//sourceId:1856467_1_69753
querySpaceDashboradVersionDetailComReqDto.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1856468_1_69753
querySpaceDashboradVersionDetailComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1856469_1_69753
    }
  
    /*D2查询空间大屏版本（Redis）[9759]   */
    Assert.isNull(querySpaceDashboradVersionDetailComReqDto.getBusinessDataObject(),"D2新增空间大屏版本（Redis）-D2查询空间大屏版本（Redis）-业务数据对象不能为空",false);
Assert.isNull(querySpaceDashboradVersionDetailComReqDto.getDashboradTypeCode(),"D2新增空间大屏版本（Redis）-D2查询空间大屏版本（Redis）-大屏类型不能为空",false);
Assert.isNull(querySpaceDashboradVersionDetailComReqDto.getCycleId(),"D2新增空间大屏版本（Redis）-D2查询空间大屏版本（Redis）-归属周期ID不能为空",false);
Assert.isNull(querySpaceDashboradVersionDetailComReqDto.getEntityId(),"D2新增空间大屏版本（Redis）-D2查询空间大屏版本（Redis）-归属内容表主键ID不能为空",false);
Assert.isNull(querySpaceDashboradVersionDetailComReqDto.getSpaceId(),"D2新增空间大屏版本（Redis）-D2查询空间大屏版本（Redis）-空间ID不能为空",false);
      querySpaceDashboradVersionDetailComRespDto = querySpaceDashboradVersionDetailCom(querySpaceDashboradVersionDetailComReqDto)/*vcase invoke 同服务,同domain*/;
      
      
      
if((querySpaceDashboradVersionDetailComRespDto!= null&& querySpaceDashboradVersionDetailComRespDto.getDashboradDataVersionNum() == null )) {
        //if(D2查询空间大屏版本（Redis）.大屏数据版本号 值等于空 )  69755
        
AddRedisBusinessDataSetComRespDto addRedisBusinessDataSetComRespDto = null;
    if(generateDashboradVersionNumComRespDto !=null){
          AddRedisBusinessDataSetComReqDto addRedisBusinessDataSetComReqDto=new AddRedisBusinessDataSetComReqDto();
  addRedisBusinessDataSetComReqDto.setRedisDataObjectCatalogue("大屏版本");//sourceId:1856482_1_69760
addRedisBusinessDataSetComReqDto.setIsDeleteRedis("FALSE");//sourceId:1856483_1_69760
addRedisBusinessDataSetComReqDto.setIsDataList("TRUE");//sourceId:1856484_1_69760
addRedisBusinessDataSetComReqDto.setCustomField1("dashboradDataVersionNum");//CUSTOM_CONVENTION//sourceId:1856485_1_69760
addRedisBusinessDataSetComReqDto.setCustomField2("dashboradName");//CUSTOM_CONVENTION//sourceId:1856487_1_69760
addRedisBusinessDataSetComReqDto.setCustomField3("dashboradTypeCode");//CUSTOM_CONVENTION//sourceId:1856491_1_69760
addRedisBusinessDataSetComReqDto.setCustomField4("cycleId");//CUSTOM_CONVENTION//sourceId:1856493_1_69760
addRedisBusinessDataSetComReqDto.setCustomField7("entityId");//CUSTOM_CONVENTION//sourceId:1856499_1_69760
addRedisBusinessDataSetComReqDto.setCustomField8("roleCode");//CUSTOM_CONVENTION//sourceId:1856501_1_69760
addRedisBusinessDataSetComReqDto.setCustomField9("themeContentId");//CUSTOM_CONVENTION//sourceId:1856503_1_69760
addRedisBusinessDataSetComReqDto.setCustomField10("spaceId");//CUSTOM_CONVENTION//sourceId:1857122_1_69760
addRedisBusinessDataSetComReqDto.setCustomField11("operateTime");//CUSTOM_CONVENTION//sourceId:1917650_1_69760
if(reqDto!=null){
      addRedisBusinessDataSetComReqDto.setBusinessDataObject(reqDto.getBusinessDataObject());//SimpleFieldAssign//sourceId:1856480_1_69760
addRedisBusinessDataSetComReqDto.setDataObjectBatchCode(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1856481_1_69760
addRedisBusinessDataSetComReqDto.setCustomFieldValue2(reqDto.getDashboradName());//SimpleFieldAssign//sourceId:1856488_1_69760
addRedisBusinessDataSetComReqDto.setCustomFieldValue3(reqDto.getDashboradTypeCode());//SimpleFieldAssign//sourceId:1856492_1_69760
addRedisBusinessDataSetComReqDto.setCustomFieldValue4(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1856494_1_69760
addRedisBusinessDataSetComReqDto.setCustomFieldValue7(reqDto.getEntityId());//SimpleFieldAssign//sourceId:1856500_1_69760
addRedisBusinessDataSetComReqDto.setCustomFieldValue8(reqDto.getRoleCode());//SimpleFieldAssign//sourceId:1856502_1_69760
addRedisBusinessDataSetComReqDto.setCustomFieldValue9(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1856504_1_69760
addRedisBusinessDataSetComReqDto.setCustomFieldValue10(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1857123_1_69760
    }
if(generateDashboradVersionNumComRespDto!=null){
      addRedisBusinessDataSetComReqDto.setCustomFieldValue1(generateDashboradVersionNumComRespDto.getDashboradDataVersionNum());//SimpleFieldAssign//sourceId:1856486_1_69760
addRedisBusinessDataSetComReqDto.setCustomFieldValue11(generateDashboradVersionNumComRespDto.getComTxtField());//SimpleFieldAssign//sourceId:1917651_1_69760
    }
  
    /*D2-新增redis业务数据对象（业务原子）[8399]   */
    Assert.isNull(addRedisBusinessDataSetComReqDto.getRedisDataObjectCatalogue(),"D2新增空间大屏版本（Redis）-D2-新增redis业务数据对象（业务原子）-Redis数据对象目录不能为空",false);
Assert.isNull(addRedisBusinessDataSetComReqDto.getBusinessDataObject(),"D2新增空间大屏版本（Redis）-D2-新增redis业务数据对象（业务原子）-业务数据对象不能为空",false);
Assert.isNull(addRedisBusinessDataSetComReqDto.getDataObjectBatchCode(),"D2新增空间大屏版本（Redis）-D2-新增redis业务数据对象（业务原子）-数据对象批次标识不能为空",false);
Assert.isNull(addRedisBusinessDataSetComReqDto.getIsDeleteRedis(),"D2新增空间大屏版本（Redis）-D2-新增redis业务数据对象（业务原子）-是否删除redis历史数据不能为空",false);
Assert.isNull(addRedisBusinessDataSetComReqDto.getIsDataList(),"D2新增空间大屏版本（Redis）-D2-新增redis业务数据对象（业务原子）-是否是数据集对象不能为空",false);
Assert.isNull(addRedisBusinessDataSetComReqDto.getCustomField1(),"D2新增空间大屏版本（Redis）-D2-新增redis业务数据对象（业务原子）-自定义字段1不能为空",false);
Assert.isNull(addRedisBusinessDataSetComReqDto.getCustomFieldValue1(),"D2新增空间大屏版本（Redis）-D2-新增redis业务数据对象（业务原子）-自定义字段值1不能为空",false);
Assert.isNull(addRedisBusinessDataSetComReqDto.getCustomField2(),"D2新增空间大屏版本（Redis）-D2-新增redis业务数据对象（业务原子）-自定义字段2不能为空",false);
Assert.isNull(addRedisBusinessDataSetComReqDto.getCustomFieldValue2(),"D2新增空间大屏版本（Redis）-D2-新增redis业务数据对象（业务原子）-自定义字段值2不能为空",false);
Assert.isNull(addRedisBusinessDataSetComReqDto.getCustomField3(),"D2新增空间大屏版本（Redis）-D2-新增redis业务数据对象（业务原子）-自定义字段3不能为空",false);
Assert.isNull(addRedisBusinessDataSetComReqDto.getCustomFieldValue3(),"D2新增空间大屏版本（Redis）-D2-新增redis业务数据对象（业务原子）-自定义字段值3不能为空",false);
Assert.isNull(addRedisBusinessDataSetComReqDto.getCustomField4(),"D2新增空间大屏版本（Redis）-D2-新增redis业务数据对象（业务原子）-自定义字段4不能为空",false);
Assert.isNull(addRedisBusinessDataSetComReqDto.getCustomFieldValue4(),"D2新增空间大屏版本（Redis）-D2-新增redis业务数据对象（业务原子）-自定义字段值4不能为空",false);
Assert.isNull(addRedisBusinessDataSetComReqDto.getCustomField7(),"D2新增空间大屏版本（Redis）-D2-新增redis业务数据对象（业务原子）-自定义字段7不能为空",false);
Assert.isNull(addRedisBusinessDataSetComReqDto.getCustomFieldValue7(),"D2新增空间大屏版本（Redis）-D2-新增redis业务数据对象（业务原子）-自定义字段值7不能为空",false);
Assert.isNull(addRedisBusinessDataSetComReqDto.getCustomField8(),"D2新增空间大屏版本（Redis）-D2-新增redis业务数据对象（业务原子）-自定义字段8不能为空",false);
Assert.isNull(addRedisBusinessDataSetComReqDto.getCustomField9(),"D2新增空间大屏版本（Redis）-D2-新增redis业务数据对象（业务原子）-自定义字段9不能为空",false);
Assert.isNull(addRedisBusinessDataSetComReqDto.getCustomField10(),"D2新增空间大屏版本（Redis）-D2-新增redis业务数据对象（业务原子）-自定义字段10不能为空",false);
Assert.isNull(addRedisBusinessDataSetComReqDto.getCustomFieldValue10(),"D2新增空间大屏版本（Redis）-D2-新增redis业务数据对象（业务原子）-自定义字段值10不能为空",false);
Assert.isNull(addRedisBusinessDataSetComReqDto.getCustomField11(),"D2新增空间大屏版本（Redis）-D2-新增redis业务数据对象（业务原子）-自定义字段11不能为空",false);
Assert.isNull(addRedisBusinessDataSetComReqDto.getCustomFieldValue11(),"D2新增空间大屏版本（Redis）-D2-新增redis业务数据对象（业务原子）-自定义字段值11不能为空",false);
      addRedisBusinessDataSetComRespDto = businessAtomService.addRedisBusinessDataSetCom(addRedisBusinessDataSetComReqDto)/*vcase invoke isSameApp*/;
      
      
      
           }
      }
else if((querySpaceDashboradVersionDetailComRespDto!= null&& querySpaceDashboradVersionDetailComRespDto.getDashboradDataVersionNum() != null )){
       //elseif(D2查询空间大屏版本（Redis）.大屏数据版本号 值不等于空 )  69764
      
UpdateSpaceDashboradVersionComRespDto updateSpaceDashboradVersionComRespDto = null;
    if(generateDashboradVersionNumComRespDto !=null){
          UpdateSpaceDashboradVersionComReqDto updateSpaceDashboradVersionComReqDto=new UpdateSpaceDashboradVersionComReqDto();
  if(reqDto!=null){
      updateSpaceDashboradVersionComReqDto.setBusinessDataObject(reqDto.getBusinessDataObject());//SimpleFieldAssign//sourceId:1857094_1_69765
updateSpaceDashboradVersionComReqDto.setDashboradTypeCode(reqDto.getDashboradTypeCode());//SimpleFieldAssign//sourceId:1857095_1_69765
updateSpaceDashboradVersionComReqDto.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1857096_1_69765
updateSpaceDashboradVersionComReqDto.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:1857099_1_69765
updateSpaceDashboradVersionComReqDto.setRoleCode(reqDto.getRoleCode());//SimpleFieldAssign//sourceId:1857100_1_69765
updateSpaceDashboradVersionComReqDto.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1857101_1_69765
updateSpaceDashboradVersionComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1857102_1_69765
    }
if(generateDashboradVersionNumComRespDto!=null){
      updateSpaceDashboradVersionComReqDto.setDashboradDataVersionNum(generateDashboradVersionNumComRespDto.getDashboradDataVersionNum());//SimpleFieldAssign//sourceId:1857103_1_69765
updateSpaceDashboradVersionComReqDto.setComTxtField(generateDashboradVersionNumComRespDto.getComTxtField());//SimpleFieldAssign//sourceId:1917741_1_69765
    }
  
    /*D2修改空间大屏版本（Redis）[9760]   */
    Assert.isNull(updateSpaceDashboradVersionComReqDto.getBusinessDataObject(),"D2新增空间大屏版本（Redis）-D2修改空间大屏版本（Redis）-业务数据对象不能为空",false);
Assert.isNull(updateSpaceDashboradVersionComReqDto.getDashboradTypeCode(),"D2新增空间大屏版本（Redis）-D2修改空间大屏版本（Redis）-大屏类型不能为空",false);
Assert.isNull(updateSpaceDashboradVersionComReqDto.getCycleId(),"D2新增空间大屏版本（Redis）-D2修改空间大屏版本（Redis）-归属周期ID不能为空",false);
Assert.isNull(updateSpaceDashboradVersionComReqDto.getEntityId(),"D2新增空间大屏版本（Redis）-D2修改空间大屏版本（Redis）-归属内容表主键ID不能为空",false);
Assert.isNull(updateSpaceDashboradVersionComReqDto.getSpaceId(),"D2新增空间大屏版本（Redis）-D2修改空间大屏版本（Redis）-空间ID不能为空",false);
Assert.isNull(updateSpaceDashboradVersionComReqDto.getDashboradDataVersionNum(),"D2新增空间大屏版本（Redis）-D2修改空间大屏版本（Redis）-大屏数据版本号不能为空",false);
Assert.isNull(updateSpaceDashboradVersionComReqDto.getComTxtField(),"D2新增空间大屏版本（Redis）-D2修改空间大屏版本（Redis）-操作时间不能为空",false);
      updateSpaceDashboradVersionComRespDto = updateSpaceDashboradVersionCom(updateSpaceDashboradVersionComReqDto)/*vcase invoke 同服务,同domain*/;
      
      
      
           }
    }
AddSpaceDashboradVersionComRespDto retData = new AddSpaceDashboradVersionComRespDto();
  
  

  
  
return retData;
  }
/**
   * D2查询空间大屏版本（Redis）[9759]
   * gen by moon at 7/3/2024, 8:16:20 PM
   */
  @Trace(operationName = "D2查询空间大屏版本（Redis）")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QuerySpaceDashboradVersionDetailComRespDto querySpaceDashboradVersionDetailCom(QuerySpaceDashboradVersionDetailComReqDto reqDto){
    
      
      QueryRefRedisBusinessDataSetDetailComRespDto queryRefRedisBusinessDataSetDetailComRespDto_1 =null;
//步骤0: M2执行第十接收字段（特殊方法） - implementTenReceivingField
     //ModelCode: receptionService
        ImplementTenReceivingFieldRespDto receptionServiceRes = null;
    ImplementTenReceivingFieldReqDto receptionServiceReq=new ImplementTenReceivingFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq.setBusinessDataObject(reqDto.getBusinessDataObject());//SimpleFieldAssign//sourceId:1856376_1
receptionServiceReq.setDashboradTypeCode(reqDto.getDashboradTypeCode());//SimpleFieldAssign//sourceId:1856374_1
receptionServiceReq.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1856435_1
receptionServiceReq.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:1856379_1
receptionServiceReq.setRoleCode(reqDto.getRoleCode());//SimpleFieldAssign//sourceId:1856383_1
receptionServiceReq.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1856380_1
receptionServiceReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1856377_1
    }
  
    /*M2接收入参字段[8782]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getBusinessDataObject(),"D2查询空间大屏版本（Redis）-M2接收入参字段-业务数据对象不能为空",false);
Assert.isNull(receptionServiceReq.getDashboradTypeCode(),"D2查询空间大屏版本（Redis）-M2接收入参字段-大屏类型不能为空",false);
Assert.isNull(receptionServiceReq.getCycleId(),"D2查询空间大屏版本（Redis）-M2接收入参字段-归属周期ID不能为空",false);
Assert.isNull(receptionServiceReq.getEntityId(),"D2查询空间大屏版本（Redis）-M2接收入参字段-归属内容表主键ID不能为空",false);
Assert.isNull(receptionServiceReq.getSpaceId(),"D2查询空间大屏版本（Redis）-M2接收入参字段-空间ID不能为空",false);
      receptionServiceRes = nbDashboradStandardData.implementTenReceivingField(receptionServiceReq);
      
      
      
    
//步骤1: D2-查询入参redis业务数据对象详情（业务原子） - queryRefRedisBusinessDataSetDetailCom
     QueryRefRedisBusinessDataSetDetailComRespDto queryRefRedisBusinessDataSetDetailComRespDto = null;
    QueryRefRedisBusinessDataSetDetailComReqDto queryRefRedisBusinessDataSetDetailComReqDto=new QueryRefRedisBusinessDataSetDetailComReqDto();
  queryRefRedisBusinessDataSetDetailComReqDto.setRedisDataObjectCatalogue("大屏版本");//sourceId:1856360_1
queryRefRedisBusinessDataSetDetailComReqDto.setRefCustomField1("dashboradTypeCode");//CUSTOM_CONVENTION//sourceId:1856244_1
queryRefRedisBusinessDataSetDetailComReqDto.setRefCustomField2("cycleId");//CUSTOM_CONVENTION//sourceId:1856245_1
queryRefRedisBusinessDataSetDetailComReqDto.setRefCustomField5("entityId");//CUSTOM_CONVENTION//sourceId:1856248_1
queryRefRedisBusinessDataSetDetailComReqDto.setRefCustomField6("roleCode");//CUSTOM_CONVENTION//sourceId:1856249_1
queryRefRedisBusinessDataSetDetailComReqDto.setRefCustomField7("themeContentId");//CUSTOM_CONVENTION//sourceId:1856250_1
queryRefRedisBusinessDataSetDetailComReqDto.setRefCustomField8("spaceId");//CUSTOM_CONVENTION//sourceId:1856251_1
queryRefRedisBusinessDataSetDetailComReqDto.setCustomField1("dashboradDataVersionNum");//CUSTOM_CONVENTION//sourceId:1856252_1
queryRefRedisBusinessDataSetDetailComReqDto.setCustomField2("dashboradTypeCode");//CUSTOM_CONVENTION//sourceId:1856253_1
queryRefRedisBusinessDataSetDetailComReqDto.setCustomField3("dashboradName");//CUSTOM_CONVENTION//sourceId:1856254_1
queryRefRedisBusinessDataSetDetailComReqDto.setCustomField4("cycleId");//CUSTOM_CONVENTION//sourceId:1856255_1
queryRefRedisBusinessDataSetDetailComReqDto.setCustomField5("updateCycleTypeCode");//CUSTOM_CONVENTION//sourceId:1856256_1
queryRefRedisBusinessDataSetDetailComReqDto.setCustomField6("tableTypeCode");//CUSTOM_CONVENTION//sourceId:1856257_1
queryRefRedisBusinessDataSetDetailComReqDto.setCustomField7("entityId");//CUSTOM_CONVENTION//sourceId:1856258_1
queryRefRedisBusinessDataSetDetailComReqDto.setCustomField8("roleCode");//CUSTOM_CONVENTION//sourceId:1856259_1
queryRefRedisBusinessDataSetDetailComReqDto.setCustomField9("themeContentId");//CUSTOM_CONVENTION//sourceId:1856260_1
queryRefRedisBusinessDataSetDetailComReqDto.setCustomField10("spaceId");//CUSTOM_CONVENTION//sourceId:1856261_1
queryRefRedisBusinessDataSetDetailComReqDto.setCustomField11("operateTime");//CUSTOM_CONVENTION//sourceId:1917709_1
if(reqDto!=null){
      queryRefRedisBusinessDataSetDetailComReqDto.setBusinessDataObject(reqDto.getBusinessDataObject());//SimpleFieldAssign//sourceId:1856242_1
queryRefRedisBusinessDataSetDetailComReqDto.setDataObjectBatchCode(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1856243_1
queryRefRedisBusinessDataSetDetailComReqDto.setRefCustomFieldValue1(reqDto.getDashboradTypeCode());//SimpleFieldAssign//sourceId:1856352_1
queryRefRedisBusinessDataSetDetailComReqDto.setRefCustomFieldValue2(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1856353_1
queryRefRedisBusinessDataSetDetailComReqDto.setRefCustomFieldValue5(reqDto.getEntityId());//SimpleFieldAssign//sourceId:1856356_1
queryRefRedisBusinessDataSetDetailComReqDto.setRefCustomFieldValue6(reqDto.getRoleCode());//SimpleFieldAssign//sourceId:1856357_1
queryRefRedisBusinessDataSetDetailComReqDto.setRefCustomFieldValue7(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1856358_1
queryRefRedisBusinessDataSetDetailComReqDto.setRefCustomFieldValue8(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1856359_1
    }
  
    /*D2-查询入参redis业务数据对象详情（业务原子）[8476]   */
    Assert.isNull(queryRefRedisBusinessDataSetDetailComReqDto.getRedisDataObjectCatalogue(),"D2查询空间大屏版本（Redis）-D2-查询入参redis业务数据对象详情（业务原子）-Redis数据对象目录不能为空",false);
Assert.isNull(queryRefRedisBusinessDataSetDetailComReqDto.getBusinessDataObject(),"D2查询空间大屏版本（Redis）-D2-查询入参redis业务数据对象详情（业务原子）-业务数据对象不能为空",false);
Assert.isNull(queryRefRedisBusinessDataSetDetailComReqDto.getDataObjectBatchCode(),"D2查询空间大屏版本（Redis）-D2-查询入参redis业务数据对象详情（业务原子）-数据对象批次标识不能为空",false);
Assert.isNull(queryRefRedisBusinessDataSetDetailComReqDto.getRefCustomField1(),"D2查询空间大屏版本（Redis）-D2-查询入参redis业务数据对象详情（业务原子）-入参自定义字段1不能为空",false);
Assert.isNull(queryRefRedisBusinessDataSetDetailComReqDto.getRefCustomFieldValue1(),"D2查询空间大屏版本（Redis）-D2-查询入参redis业务数据对象详情（业务原子）-入参自定义字段值1不能为空",false);
Assert.isNull(queryRefRedisBusinessDataSetDetailComReqDto.getRefCustomField2(),"D2查询空间大屏版本（Redis）-D2-查询入参redis业务数据对象详情（业务原子）-入参自定义字段2不能为空",false);
Assert.isNull(queryRefRedisBusinessDataSetDetailComReqDto.getRefCustomFieldValue2(),"D2查询空间大屏版本（Redis）-D2-查询入参redis业务数据对象详情（业务原子）-入参自定义字段值2不能为空",false);
Assert.isNull(queryRefRedisBusinessDataSetDetailComReqDto.getRefCustomField5(),"D2查询空间大屏版本（Redis）-D2-查询入参redis业务数据对象详情（业务原子）-入参自定义字段5不能为空",false);
Assert.isNull(queryRefRedisBusinessDataSetDetailComReqDto.getRefCustomFieldValue5(),"D2查询空间大屏版本（Redis）-D2-查询入参redis业务数据对象详情（业务原子）-入参自定义字段值5不能为空",false);
Assert.isNull(queryRefRedisBusinessDataSetDetailComReqDto.getRefCustomField6(),"D2查询空间大屏版本（Redis）-D2-查询入参redis业务数据对象详情（业务原子）-入参自定义字段6不能为空",false);
Assert.isNull(queryRefRedisBusinessDataSetDetailComReqDto.getRefCustomField7(),"D2查询空间大屏版本（Redis）-D2-查询入参redis业务数据对象详情（业务原子）-入参自定义字段7不能为空",false);
Assert.isNull(queryRefRedisBusinessDataSetDetailComReqDto.getRefCustomField8(),"D2查询空间大屏版本（Redis）-D2-查询入参redis业务数据对象详情（业务原子）-入参自定义字段8不能为空",false);
Assert.isNull(queryRefRedisBusinessDataSetDetailComReqDto.getRefCustomFieldValue8(),"D2查询空间大屏版本（Redis）-D2-查询入参redis业务数据对象详情（业务原子）-入参自定义字段值8不能为空",false);
Assert.isNull(queryRefRedisBusinessDataSetDetailComReqDto.getCustomField1(),"D2查询空间大屏版本（Redis）-D2-查询入参redis业务数据对象详情（业务原子）-自定义字段1不能为空",false);
Assert.isNull(queryRefRedisBusinessDataSetDetailComReqDto.getCustomField2(),"D2查询空间大屏版本（Redis）-D2-查询入参redis业务数据对象详情（业务原子）-自定义字段2不能为空",false);
Assert.isNull(queryRefRedisBusinessDataSetDetailComReqDto.getCustomField3(),"D2查询空间大屏版本（Redis）-D2-查询入参redis业务数据对象详情（业务原子）-自定义字段3不能为空",false);
Assert.isNull(queryRefRedisBusinessDataSetDetailComReqDto.getCustomField4(),"D2查询空间大屏版本（Redis）-D2-查询入参redis业务数据对象详情（业务原子）-自定义字段4不能为空",false);
Assert.isNull(queryRefRedisBusinessDataSetDetailComReqDto.getCustomField5(),"D2查询空间大屏版本（Redis）-D2-查询入参redis业务数据对象详情（业务原子）-自定义字段5不能为空",false);
Assert.isNull(queryRefRedisBusinessDataSetDetailComReqDto.getCustomField6(),"D2查询空间大屏版本（Redis）-D2-查询入参redis业务数据对象详情（业务原子）-自定义字段6不能为空",false);
Assert.isNull(queryRefRedisBusinessDataSetDetailComReqDto.getCustomField7(),"D2查询空间大屏版本（Redis）-D2-查询入参redis业务数据对象详情（业务原子）-自定义字段7不能为空",false);
Assert.isNull(queryRefRedisBusinessDataSetDetailComReqDto.getCustomField8(),"D2查询空间大屏版本（Redis）-D2-查询入参redis业务数据对象详情（业务原子）-自定义字段8不能为空",false);
Assert.isNull(queryRefRedisBusinessDataSetDetailComReqDto.getCustomField9(),"D2查询空间大屏版本（Redis）-D2-查询入参redis业务数据对象详情（业务原子）-自定义字段9不能为空",false);
Assert.isNull(queryRefRedisBusinessDataSetDetailComReqDto.getCustomField10(),"D2查询空间大屏版本（Redis）-D2-查询入参redis业务数据对象详情（业务原子）-自定义字段10不能为空",false);
Assert.isNull(queryRefRedisBusinessDataSetDetailComReqDto.getCustomField11(),"D2查询空间大屏版本（Redis）-D2-查询入参redis业务数据对象详情（业务原子）-自定义字段11不能为空",false);
      queryRefRedisBusinessDataSetDetailComRespDto = businessAtomService.queryRefRedisBusinessDataSetDetailCom(queryRefRedisBusinessDataSetDetailComReqDto)/*vcase invoke isSameApp*/;
      
      
      queryRefRedisBusinessDataSetDetailComRespDto_1 = queryRefRedisBusinessDataSetDetailComRespDto;
    
QuerySpaceDashboradVersionDetailComRespDto retData = new QuerySpaceDashboradVersionDetailComRespDto();
  if(queryRefRedisBusinessDataSetDetailComRespDto_1!=null){
      retData.setDashboradDataVersionNum(queryRefRedisBusinessDataSetDetailComRespDto_1.getCustomField1());//SimpleFieldAssign//sourceId:1856450_1
retData.setDashboradTypeCode(queryRefRedisBusinessDataSetDetailComRespDto_1.getCustomField2());//SimpleFieldAssign//sourceId:1856451_1
retData.setDashboradName(queryRefRedisBusinessDataSetDetailComRespDto_1.getCustomField3());//SimpleFieldAssign//sourceId:1856452_1
retData.setCycleId(queryRefRedisBusinessDataSetDetailComRespDto_1.getCustomField4());//SimpleFieldAssign//sourceId:1856453_1
retData.setUpdateCycleTypeCode(queryRefRedisBusinessDataSetDetailComRespDto_1.getCustomField5());//SimpleFieldAssign//sourceId:1856454_1
retData.setTableTypeCode(queryRefRedisBusinessDataSetDetailComRespDto_1.getCustomField6());//SimpleFieldAssign//sourceId:1856455_1
retData.setEntityId(queryRefRedisBusinessDataSetDetailComRespDto_1.getCustomField7());//SimpleFieldAssign//sourceId:1856456_1
retData.setRoleCode(queryRefRedisBusinessDataSetDetailComRespDto_1.getCustomField8());//SimpleFieldAssign//sourceId:1856457_1
retData.setThemeContentId(queryRefRedisBusinessDataSetDetailComRespDto_1.getCustomField9());//SimpleFieldAssign//sourceId:1856458_1
retData.setSpaceId(queryRefRedisBusinessDataSetDetailComRespDto_1.getCustomField10());//SimpleFieldAssign//sourceId:1856459_1
retData.setOperateTime(queryRefRedisBusinessDataSetDetailComRespDto_1.getCustomField11());//SimpleFieldAssign//sourceId:1917712_1
    }
  

  
  
return retData;
  }
/**
   * D2修改空间大屏版本（Redis）[9760]
   * gen by moon at 7/3/2024, 8:16:27 PM
   */
  @Trace(operationName = "D2修改空间大屏版本（Redis）")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public UpdateSpaceDashboradVersionComRespDto updateSpaceDashboradVersionCom(UpdateSpaceDashboradVersionComReqDto reqDto){
    
      
      //步骤0: M2执行第十接收字段（特殊方法） - implementTenReceivingField
     //ModelCode: receptionService
        ImplementTenReceivingFieldRespDto receptionServiceRes = null;
    ImplementTenReceivingFieldReqDto receptionServiceReq=new ImplementTenReceivingFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq.setBusinessDataObject(reqDto.getBusinessDataObject());//SimpleFieldAssign//sourceId:1857021_1
receptionServiceReq.setDashboradDataVersionNum(reqDto.getDashboradDataVersionNum());//SimpleFieldAssign//sourceId:1857092_1
receptionServiceReq.setDashboradTypeCode(reqDto.getDashboradTypeCode());//SimpleFieldAssign//sourceId:1857022_1
receptionServiceReq.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1857023_1
receptionServiceReq.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:1857026_1
receptionServiceReq.setRoleCode(reqDto.getRoleCode());//SimpleFieldAssign//sourceId:1857027_1
receptionServiceReq.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1857028_1
receptionServiceReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1857029_1
receptionServiceReq.setComTxtField(reqDto.getComTxtField());//SimpleFieldAssign//sourceId:1917735_1
    }
  
    /*M2接收入参字段[8782]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getBusinessDataObject(),"D2修改空间大屏版本（Redis）-M2接收入参字段-业务数据对象不能为空",false);
Assert.isNull(receptionServiceReq.getDashboradTypeCode(),"D2修改空间大屏版本（Redis）-M2接收入参字段-大屏类型不能为空",false);
Assert.isNull(receptionServiceReq.getCycleId(),"D2修改空间大屏版本（Redis）-M2接收入参字段-归属周期ID不能为空",false);
Assert.isNull(receptionServiceReq.getEntityId(),"D2修改空间大屏版本（Redis）-M2接收入参字段-归属内容表主键ID不能为空",false);
Assert.isNull(receptionServiceReq.getSpaceId(),"D2修改空间大屏版本（Redis）-M2接收入参字段-空间ID不能为空",false);
      receptionServiceRes = nbDashboradStandardData.implementTenReceivingField(receptionServiceReq);
      
      
      
    
//步骤1: D2修改redis业务数据对象(业务原子) - updateRedisBusinessDataSetCom
     UpdateRedisBusinessDataSetComRespDto updateRedisBusinessDataSetComRespDto = null;
    UpdateRedisBusinessDataSetComReqDto updateRedisBusinessDataSetComReqDto=new UpdateRedisBusinessDataSetComReqDto();
  updateRedisBusinessDataSetComReqDto.setRedisDataObjectCatalogue("大屏版本");//sourceId:1857039_1
updateRedisBusinessDataSetComReqDto.setIsDataList("TRUE");//sourceId:1857042_1
updateRedisBusinessDataSetComReqDto.setRefCustomField1("dashboradTypeCode");//CUSTOM_CONVENTION//sourceId:1857043_1
updateRedisBusinessDataSetComReqDto.setRefCustomField2("cycleId");//CUSTOM_CONVENTION//sourceId:1857045_1
updateRedisBusinessDataSetComReqDto.setRefCustomField5("entityId");//CUSTOM_CONVENTION//sourceId:1857051_1
updateRedisBusinessDataSetComReqDto.setRefCustomField6("roleCode");//CUSTOM_CONVENTION//sourceId:1857053_1
updateRedisBusinessDataSetComReqDto.setRefCustomField7("themeContentId");//CUSTOM_CONVENTION//sourceId:1857083_1
updateRedisBusinessDataSetComReqDto.setRefCustomField8("spaceId");//CUSTOM_CONVENTION//sourceId:1857085_1
updateRedisBusinessDataSetComReqDto.setCustomField1("dashboradDataVersionNum");//CUSTOM_CONVENTION//sourceId:1857055_1
updateRedisBusinessDataSetComReqDto.setCustomField2("operateTime");//CUSTOM_CONVENTION//sourceId:1917724_1
if(reqDto!=null){
      updateRedisBusinessDataSetComReqDto.setBusinessDataObject(reqDto.getBusinessDataObject());//SimpleFieldAssign//sourceId:1857041_1
updateRedisBusinessDataSetComReqDto.setDataObjectBatchCode(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1857040_1
updateRedisBusinessDataSetComReqDto.setRefCustomFieldValue1(reqDto.getDashboradTypeCode());//SimpleFieldAssign//sourceId:1857044_1
updateRedisBusinessDataSetComReqDto.setRefCustomFieldValue2(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1857046_1
updateRedisBusinessDataSetComReqDto.setRefCustomFieldValue5(reqDto.getEntityId());//SimpleFieldAssign//sourceId:1857052_1
updateRedisBusinessDataSetComReqDto.setRefCustomFieldValue6(reqDto.getRoleCode());//SimpleFieldAssign//sourceId:1857054_1
updateRedisBusinessDataSetComReqDto.setRefCustomFieldValue7(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1857084_1
updateRedisBusinessDataSetComReqDto.setRefCustomFieldValue8(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1857086_1
updateRedisBusinessDataSetComReqDto.setCustomFieldValue1(reqDto.getDashboradDataVersionNum());//SimpleFieldAssign//sourceId:1857056_1
updateRedisBusinessDataSetComReqDto.setCustomFieldValue2(reqDto.getComTxtField());//SimpleFieldAssign//sourceId:1917725_1
    }
  
    /*D2修改redis业务数据对象(业务原子)[9407]   */
    Assert.isNull(updateRedisBusinessDataSetComReqDto.getRedisDataObjectCatalogue(),"D2修改空间大屏版本（Redis）-D2修改redis业务数据对象(业务原子)-Redis数据对象目录不能为空",false);
Assert.isNull(updateRedisBusinessDataSetComReqDto.getBusinessDataObject(),"D2修改空间大屏版本（Redis）-D2修改redis业务数据对象(业务原子)-业务数据对象不能为空",false);
Assert.isNull(updateRedisBusinessDataSetComReqDto.getDataObjectBatchCode(),"D2修改空间大屏版本（Redis）-D2修改redis业务数据对象(业务原子)-数据对象批次标识不能为空",false);
Assert.isNull(updateRedisBusinessDataSetComReqDto.getIsDataList(),"D2修改空间大屏版本（Redis）-D2修改redis业务数据对象(业务原子)-是否是数据集对象不能为空",false);
Assert.isNull(updateRedisBusinessDataSetComReqDto.getRefCustomField1(),"D2修改空间大屏版本（Redis）-D2修改redis业务数据对象(业务原子)-入参自定义字段1不能为空",false);
Assert.isNull(updateRedisBusinessDataSetComReqDto.getRefCustomFieldValue1(),"D2修改空间大屏版本（Redis）-D2修改redis业务数据对象(业务原子)-入参自定义字段值1不能为空",false);
Assert.isNull(updateRedisBusinessDataSetComReqDto.getRefCustomField2(),"D2修改空间大屏版本（Redis）-D2修改redis业务数据对象(业务原子)-入参自定义字段2不能为空",false);
Assert.isNull(updateRedisBusinessDataSetComReqDto.getRefCustomFieldValue2(),"D2修改空间大屏版本（Redis）-D2修改redis业务数据对象(业务原子)-入参自定义字段值2不能为空",false);
Assert.isNull(updateRedisBusinessDataSetComReqDto.getRefCustomField5(),"D2修改空间大屏版本（Redis）-D2修改redis业务数据对象(业务原子)-入参自定义字段5不能为空",false);
Assert.isNull(updateRedisBusinessDataSetComReqDto.getRefCustomFieldValue5(),"D2修改空间大屏版本（Redis）-D2修改redis业务数据对象(业务原子)-入参自定义字段值5不能为空",false);
Assert.isNull(updateRedisBusinessDataSetComReqDto.getRefCustomField6(),"D2修改空间大屏版本（Redis）-D2修改redis业务数据对象(业务原子)-入参自定义字段6不能为空",false);
Assert.isNull(updateRedisBusinessDataSetComReqDto.getRefCustomField7(),"D2修改空间大屏版本（Redis）-D2修改redis业务数据对象(业务原子)-入参自定义字段7不能为空",false);
Assert.isNull(updateRedisBusinessDataSetComReqDto.getRefCustomField8(),"D2修改空间大屏版本（Redis）-D2修改redis业务数据对象(业务原子)-入参自定义字段8不能为空",false);
Assert.isNull(updateRedisBusinessDataSetComReqDto.getRefCustomFieldValue8(),"D2修改空间大屏版本（Redis）-D2修改redis业务数据对象(业务原子)-入参自定义字段值8不能为空",false);
Assert.isNull(updateRedisBusinessDataSetComReqDto.getCustomField1(),"D2修改空间大屏版本（Redis）-D2修改redis业务数据对象(业务原子)-自定义字段1不能为空",false);
Assert.isNull(updateRedisBusinessDataSetComReqDto.getCustomField2(),"D2修改空间大屏版本（Redis）-D2修改redis业务数据对象(业务原子)-自定义字段2不能为空",false);
      updateRedisBusinessDataSetComRespDto = businessAtomService.updateRedisBusinessDataSetCom(updateRedisBusinessDataSetComReqDto)/*vcase invoke isSameApp*/;
      
      
      
    
UpdateSpaceDashboradVersionComRespDto retData = new UpdateSpaceDashboradVersionComRespDto();
  
  

  
  
return retData;
  }
/**
   * D2查询大屏名称及导航(公共)[9805]
   * gen by moon at 9/24/2024, 10:51:48 PM
   */
  @Trace(operationName = "D2查询大屏名称及导航(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryDashboardNameAndMenuDetailComRespDto queryDashboardNameAndMenuDetailCom(QueryDashboardNameAndMenuDetailComReqDto reqDto){


      ImplementTenReceivingFieldRespDto receptionServiceRes_2 =null;
//步骤0: M2执行第十接收字段（特殊方法） - implementTenReceivingField
     //ModelCode: receptionService
        ImplementTenReceivingFieldRespDto receptionServiceRes = null;
    ImplementTenReceivingFieldReqDto receptionServiceReq=new ImplementTenReceivingFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq.setDashboardNameCode(reqDto.getDashboardNameCode());//SimpleFieldAssign//sourceId:1865843_1
receptionServiceReq.setDashboardOneMenuCode(reqDto.getDashboardOneMenuCode());//SimpleFieldAssign//sourceId:1865844_1
receptionServiceReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1865839_1
    }

    /*M2接收入参字段[8782]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getSpaceId(),"D2查询大屏名称及导航(公共)-M2接收入参字段-空间ID不能为空",false);
      receptionServiceRes = nbDashboradStandardData.implementTenReceivingField(receptionServiceReq);




//步骤1: D2-3查配置项匹配答案详情(公共)（跨服务） - queryConfItemMatchAnswerDetailCom
     QueryConfItemMatchAnswerDetailComRespDto queryConfItemMatchAnswerDetailComRespDto = null;
    QueryConfItemMatchAnswerDetailComReqDto queryConfItemMatchAnswerDetailComReqDto=new QueryConfItemMatchAnswerDetailComReqDto();
  queryConfItemMatchAnswerDetailComReqDto.setConfItemCode("DASHBOARD_NAME");//CUSTOM_CONVENTION//sourceId:1865607_1
queryConfItemMatchAnswerDetailComReqDto.setResultAspObjType("TENANT_SPACE");//sourceId:1866469_1
queryConfItemMatchAnswerDetailComReqDto.setIsPlatData("FALSE");//sourceId:1865616_1
if(reqDto!=null){
      queryConfItemMatchAnswerDetailComReqDto.setConfOptionCode(reqDto.getDashboardNameCode());//SimpleFieldAssign//sourceId:1865621_1
queryConfItemMatchAnswerDetailComReqDto.setResultAspObjId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1865609_1
    }

    /*D2查空间大屏名称及LOGO[2486]   */
    Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getConfOptionCode(),"D2查询大屏名称及导航(公共)-D2查空间大屏名称及LOGO-选项标识不能为空",false);
Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getConfItemCode(),"D2查询大屏名称及导航(公共)-D2查空间大屏名称及LOGO-配置项标识不能为空",false);
Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getResultAspObjType(),"D2查询大屏名称及导航(公共)-D2查空间大屏名称及LOGO-开通对象类型编码不能为空",false);
Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getResultAspObjId(),"D2查询大屏名称及导航(公共)-D2查空间大屏名称及LOGO-开通对象ID不能为空",false);
Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getIsPlatData(),"D2查询大屏名称及导航(公共)-D2查空间大屏名称及LOGO-是否标准答案不能为空",false);
      queryConfItemMatchAnswerDetailComRespDto = confSchemeService.queryConfItemMatchAnswerDetailCom(queryConfItemMatchAnswerDetailComReqDto)/*vcase invoke isSameApp*/;




//步骤2: D2执行单条相对地址转全路径(公共) - implementSingleRelativePathConvertToFullPathCom
     ImplementSingleRelativePathConvertToFullPathComRespDto implementSingleRelativePathConvertToFullPathComRespDto = null;
    if(queryConfItemMatchAnswerDetailComRespDto !=null){
          ImplementSingleRelativePathConvertToFullPathComReqDto implementSingleRelativePathConvertToFullPathComReqDto=new ImplementSingleRelativePathConvertToFullPathComReqDto();
  if(queryConfItemMatchAnswerDetailComRespDto!=null){
      implementSingleRelativePathConvertToFullPathComReqDto.setRelativePath(queryConfItemMatchAnswerDetailComRespDto.getExtensionField1());//SimpleFieldAssign//sourceId:1866986_1
    }

    /*D2执行单条相对地址转全路径(公共)[9811]   */
    Assert.isNull(implementSingleRelativePathConvertToFullPathComReqDto.getRelativePath(),"D2查询大屏名称及导航(公共)-D2执行单条相对地址转全路径(公共)-相对地址不能为空",false);
      implementSingleRelativePathConvertToFullPathComRespDto = interfaceModeService.implementSingleRelativePathConvertToFullPathCom(implementSingleRelativePathConvertToFullPathComReqDto)/*vcase invoke isSameApp*/;



           }

//步骤3: D2-3查配置项匹配答案列表(公共)（跨服务） - queryConfItemMatchAnswerListCom
     QueryConfItemMatchAnswerListComRespDto queryConfItemMatchAnswerListComRespDto = null;
    QueryConfItemMatchAnswerListComReqDto queryConfItemMatchAnswerListComReqDto=new QueryConfItemMatchAnswerListComReqDto();
  queryConfItemMatchAnswerListComReqDto.setResultAspObjType("TENANT_SPACE");//sourceId:1866468_1
  queryConfItemMatchAnswerListComReqDto.setIsPlatData("FALSE");//sourceId:1865825_1
if(reqDto!=null){
      queryConfItemMatchAnswerListComReqDto.setConfItemCode(reqDto.getDashboardOneMenuCode());//SimpleFieldAssign//sourceId:1865822_1
queryConfItemMatchAnswerListComReqDto.setResultAspObjId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1865824_1
    }

    /*D2查大屏一级导航列表[2505]   */
    Assert.isNull(queryConfItemMatchAnswerListComReqDto.getConfItemCode(),"D2查询大屏名称及导航(公共)-D2查大屏一级导航列表-配置项标识不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getResultAspObjId(),"D2查询大屏名称及导航(公共)-D2查大屏一级导航列表-开通对象ID不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getResultAspObjType(),"D2查询大屏名称及导航(公共)-D2查大屏一级导航列表-开通对象类型编码不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getIsPlatData(),"D2查询大屏名称及导航(公共)-D2查大屏一级导航列表-是否标准答案不能为空",false);
      queryConfItemMatchAnswerListComRespDto = confSchemeService.queryConfItemMatchAnswerListCom(queryConfItemMatchAnswerListComReqDto)/*vcase invoke isSameApp*/;




//步骤4: M2执行第十接收字段（特殊方法） - implementTenReceivingField
     //ModelCode: receptionService
        ImplementTenReceivingFieldRespDto receptionServiceRes_1 = null;
    if(queryConfItemMatchAnswerDetailComRespDto !=null){
          ImplementTenReceivingFieldReqDto receptionServiceReq_1=new ImplementTenReceivingFieldReqDto();
  if(queryConfItemMatchAnswerDetailComRespDto!=null){
      receptionServiceReq_1.setDashboradName(queryConfItemMatchAnswerDetailComRespDto.getEndValue());//SimpleFieldAssign//sourceId:1866047_1
    }
if(implementSingleRelativePathConvertToFullPathComRespDto!=null){
      receptionServiceReq_1.setDashboardLogo(implementSingleRelativePathConvertToFullPathComRespDto.getFullPath());//SimpleFieldAssign//sourceId:1866054_1
    }
if(queryConfItemMatchAnswerListComRespDto!= null&&  queryConfItemMatchAnswerListComRespDto.getConfSchemeItemResultList() !=null&& !CollectionUtil.isEmpty(queryConfItemMatchAnswerListComRespDto.getConfSchemeItemResultList())){
      receptionServiceReq_1.setDashboardOneMenuList(//objList-to-objLists
        queryConfItemMatchAnswerListComRespDto.getConfSchemeItemResultList().stream().map(item -> {
      DashboardOneMenuDto elm = new DashboardOneMenuDto();
      if(item!=null){
      elm.setDashboardOneMenuCode(item.getConfOptionCode());//SimpleFieldAssign//sourceId:373326_2
elm.setDashboardOneMenuName(item.getConfOptionName());//SimpleFieldAssign//sourceId:373327_2
elm.setDashboardOneMenuIcon(item.getExtensionField1());//SimpleFieldAssign//sourceId:373328_2
elm.setDashboardOneMenuAlias(item.getExtensionField2());//SimpleFieldAssign//sourceId:420899_2
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1866050_1
    }

    /*M2接收字段[8782]  用于特殊方法接收上游入参。 */

      receptionServiceRes_1 = nbDashboradStandardData.implementTenReceivingField(receptionServiceReq_1);


      receptionServiceRes_2 = receptionServiceRes_1;
           }

QueryDashboardNameAndMenuDetailComRespDto retData = new QueryDashboardNameAndMenuDetailComRespDto();
  if(receptionServiceRes_2!=null){
      retData.setDashboradName(receptionServiceRes_2.getDashboradName());//SimpleFieldAssign//sourceId:1866065_1
retData.setDashboardLogo(receptionServiceRes_2.getDashboardLogo());//SimpleFieldAssign//sourceId:1866066_1
retData.setDashboardOneMenuList(receptionServiceRes_2.getDashboardOneMenuList().stream().map(item -> BeanUtil.toBean(item, DashboardOneMenuDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1866064_1
    }




return retData;
  }
/**
   * D2查询大屏二级导航列表(公共)[9807]
   * gen by moon at 9/24/2024, 10:51:53 PM
   */
  @Trace(operationName = "D2查询大屏二级导航列表(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryDashboardTwoMenuListComRespDto queryDashboardTwoMenuListCom(QueryDashboardTwoMenuListComReqDto reqDto){


      ImplementTenReceivingFieldRespDto receptionServiceRes_1 =null;
//步骤0: D2-3查配置项匹配答案列表(公共)（跨服务） - queryConfItemMatchAnswerListCom
     QueryConfItemMatchAnswerListComRespDto queryConfItemMatchAnswerListComRespDto = null;
    QueryConfItemMatchAnswerListComReqDto queryConfItemMatchAnswerListComReqDto=new QueryConfItemMatchAnswerListComReqDto();
  queryConfItemMatchAnswerListComReqDto.setIsPlatData("FALSE");//sourceId:1866076_1
if(reqDto!=null){
      queryConfItemMatchAnswerListComReqDto.setConfItemCode(reqDto.getConfItemCode());//SimpleFieldAssign//sourceId:1866073_1
queryConfItemMatchAnswerListComReqDto.setResultAspObjType(reqDto.getResultAspObjType());//SimpleFieldAssign//sourceId:1866988_1
queryConfItemMatchAnswerListComReqDto.setResultAspObjId(reqDto.getResultAspObjId());//SimpleFieldAssign//sourceId:1866075_1
    }

    /*D2-3查配置项匹配答案列表(公共)（跨服务）[2505]   */
    Assert.isNull(queryConfItemMatchAnswerListComReqDto.getConfItemCode(),"D2查询大屏二级导航列表(公共)-D2-3查配置项匹配答案列表(公共)（跨服务）-配置项标识不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getResultAspObjType(),"D2查询大屏二级导航列表(公共)-D2-3查配置项匹配答案列表(公共)（跨服务）-开通对象类型编码不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getResultAspObjId(),"D2查询大屏二级导航列表(公共)-D2-3查配置项匹配答案列表(公共)（跨服务）-开通对象ID不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getIsPlatData(),"D2查询大屏二级导航列表(公共)-D2-3查配置项匹配答案列表(公共)（跨服务）-是否标准答案不能为空",false);
      queryConfItemMatchAnswerListComRespDto = confSchemeService.queryConfItemMatchAnswerListCom(queryConfItemMatchAnswerListComReqDto)/*vcase invoke isSameApp*/;




//步骤1: M2执行第十接收字段（特殊方法） - implementTenReceivingField
     //ModelCode: receptionService
        ImplementTenReceivingFieldRespDto receptionServiceRes = null;
    if(queryConfItemMatchAnswerListComRespDto !=null){
          ImplementTenReceivingFieldReqDto receptionServiceReq=new ImplementTenReceivingFieldReqDto();
  if(queryConfItemMatchAnswerListComRespDto!= null&&  queryConfItemMatchAnswerListComRespDto.getConfSchemeItemResultList() !=null&& !CollectionUtil.isEmpty(queryConfItemMatchAnswerListComRespDto.getConfSchemeItemResultList())){
      receptionServiceReq.setDashboardTwoMenuList(//objList-to-objLists
        queryConfItemMatchAnswerListComRespDto.getConfSchemeItemResultList().stream().map(item -> {
      DashboardTwoMenuDto elm = new DashboardTwoMenuDto();
      if(item!=null){
      elm.setDashboardTwoMenuCode(item.getConfOptionCode());//SimpleFieldAssign//sourceId:373404_2
elm.setDashboardTwoMenuName(item.getConfOptionName());//SimpleFieldAssign//sourceId:373405_2
elm.setDashboardTwoMenuIcon(item.getExtensionField1());//SimpleFieldAssign//sourceId:373406_2
elm.setDashboardTwoMenuAlias(item.getExtensionField2());//SimpleFieldAssign//sourceId:420903_2
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1866287_1
    }

    /*M2接收字段[8782]  用于特殊方法接收上游入参。 */

      receptionServiceRes = nbDashboradStandardData.implementTenReceivingField(receptionServiceReq);


      receptionServiceRes_1 = receptionServiceRes;
           }

QueryDashboardTwoMenuListComRespDto retData = new QueryDashboardTwoMenuListComRespDto();
  if(receptionServiceRes_1!=null){
      retData.setDashboardTwoMenuList(receptionServiceRes_1.getDashboardTwoMenuList().stream().map(item -> BeanUtil.toBean(item, DashboardTwoMenuDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1866289_1
    }




return retData;
  }
/**
   * D2查询空间大屏配置参数(公共)[9809]
   * gen by moon at 10/5/2024, 1:08:13 PM
   */
  @Trace(operationName = "D2查询空间大屏配置参数(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QuerySpacDashboardConfVariableDetailComRespDto querySpacDashboardConfVariableDetailCom(QuerySpacDashboardConfVariableDetailComReqDto reqDto){


      ImplementTenReceivingFieldRespDto receptionServiceRes_2 =null;
//步骤0: M2执行第十接收字段（特殊方法） - implementTenReceivingField
     //ModelCode: receptionService
        ImplementTenReceivingFieldRespDto receptionServiceRes = null;
    ImplementTenReceivingFieldReqDto receptionServiceReq=new ImplementTenReceivingFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1866938_1
    }

    /*M2接收入参字段[8782]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getSpaceId(),"D2查询空间大屏配置参数(公共)-M2接收入参字段-空间ID不能为空",false);
      receptionServiceRes = nbDashboradStandardData.implementTenReceivingField(receptionServiceReq);




//步骤1: D2-3查配置项匹配答案详情(公共)（跨服务） - queryConfItemMatchAnswerDetailCom
     QueryConfItemMatchAnswerDetailComRespDto queryConfItemMatchAnswerDetailComRespDto = null;
    QueryConfItemMatchAnswerDetailComReqDto queryConfItemMatchAnswerDetailComReqDto=new QueryConfItemMatchAnswerDetailComReqDto();
  queryConfItemMatchAnswerDetailComReqDto.setConfItemCode("DASHBOARD_ENTRANCE_CONF");//CUSTOM_CONVENTION//sourceId:1866943_1
queryConfItemMatchAnswerDetailComReqDto.setResultAspObjType("TENANT_SPACE");//sourceId:1866942_1
queryConfItemMatchAnswerDetailComReqDto.setIsPlatData("FALSE");//sourceId:1866944_1
if(reqDto!=null){
      queryConfItemMatchAnswerDetailComReqDto.setResultAspObjId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1866941_1
    }

    /*D2查空间大屏入口配置参数[2486]   */
    Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getConfItemCode(),"D2查询空间大屏配置参数(公共)-D2查空间大屏入口配置参数-配置项标识不能为空",false);
Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getResultAspObjId(),"D2查询空间大屏配置参数(公共)-D2查空间大屏入口配置参数-开通对象ID不能为空",false);
Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getResultAspObjType(),"D2查询空间大屏配置参数(公共)-D2查空间大屏入口配置参数-开通对象类型编码不能为空",false);
Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getIsPlatData(),"D2查询空间大屏配置参数(公共)-D2查空间大屏入口配置参数-是否标准答案不能为空",false);
      queryConfItemMatchAnswerDetailComRespDto = confSchemeService.queryConfItemMatchAnswerDetailCom(queryConfItemMatchAnswerDetailComReqDto)/*vcase invoke isSameApp*/;




//步骤2: D2-3查配置项匹配答案详情(公共)（跨服务） - queryConfItemMatchAnswerDetailCom
     QueryConfItemMatchAnswerDetailComRespDto queryConfItemMatchAnswerDetailComRespDto_2 = null;
    QueryConfItemMatchAnswerDetailComReqDto queryConfItemMatchAnswerDetailComReqDto_1=new QueryConfItemMatchAnswerDetailComReqDto();
  queryConfItemMatchAnswerDetailComReqDto_1.setConfItemCode("IS_OPEN_DASHBOARD_ENTRANCE");//CUSTOM_CONVENTION//sourceId:1866947_1
queryConfItemMatchAnswerDetailComReqDto_1.setResultAspObjType("TENANT_SPACE");//sourceId:1866946_1
queryConfItemMatchAnswerDetailComReqDto_1.setIsPlatData("FALSE");//sourceId:1866948_1
if(reqDto!=null){
      queryConfItemMatchAnswerDetailComReqDto_1.setResultAspObjId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1866945_1
    }

    /*D2查项目大屏入口是否开启配置参数[2486]   */
    Assert.isNull(queryConfItemMatchAnswerDetailComReqDto_1.getConfItemCode(),"D2查询空间大屏配置参数(公共)-D2查项目大屏入口是否开启配置参数-配置项标识不能为空",false);
Assert.isNull(queryConfItemMatchAnswerDetailComReqDto_1.getResultAspObjId(),"D2查询空间大屏配置参数(公共)-D2查项目大屏入口是否开启配置参数-开通对象ID不能为空",false);
Assert.isNull(queryConfItemMatchAnswerDetailComReqDto_1.getResultAspObjType(),"D2查询空间大屏配置参数(公共)-D2查项目大屏入口是否开启配置参数-开通对象类型编码不能为空",false);
Assert.isNull(queryConfItemMatchAnswerDetailComReqDto_1.getIsPlatData(),"D2查询空间大屏配置参数(公共)-D2查项目大屏入口是否开启配置参数-是否标准答案不能为空",false);
      queryConfItemMatchAnswerDetailComRespDto_2 = confSchemeService.queryConfItemMatchAnswerDetailCom(queryConfItemMatchAnswerDetailComReqDto_1)/*vcase invoke isSameApp*/;




//步骤3: D2-3查配置项匹配答案详情(公共)（跨服务） - queryConfItemMatchAnswerDetailCom
     QueryConfItemMatchAnswerDetailComRespDto queryConfItemMatchAnswerDetailComRespDto_4 = null;
    QueryConfItemMatchAnswerDetailComReqDto queryConfItemMatchAnswerDetailComReqDto_2=new QueryConfItemMatchAnswerDetailComReqDto();
  queryConfItemMatchAnswerDetailComReqDto_2.setConfItemCode("DASHBOARD_OPEN_TYPE_CODE");//CUSTOM_CONVENTION//sourceId:1866952_1
queryConfItemMatchAnswerDetailComReqDto_2.setResultAspObjType("TENANT_SPACE");//sourceId:1866951_1
queryConfItemMatchAnswerDetailComReqDto_2.setIsPlatData("FALSE");//sourceId:1866953_1
if(reqDto!=null){
      queryConfItemMatchAnswerDetailComReqDto_2.setResultAspObjId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1866950_1
    }

    /*D2查空间大屏开启类型配置参数[2486]   */
    Assert.isNull(queryConfItemMatchAnswerDetailComReqDto_2.getConfItemCode(),"D2查询空间大屏配置参数(公共)-D2查空间大屏开启类型配置参数-配置项标识不能为空",false);
Assert.isNull(queryConfItemMatchAnswerDetailComReqDto_2.getResultAspObjId(),"D2查询空间大屏配置参数(公共)-D2查空间大屏开启类型配置参数-开通对象ID不能为空",false);
Assert.isNull(queryConfItemMatchAnswerDetailComReqDto_2.getResultAspObjType(),"D2查询空间大屏配置参数(公共)-D2查空间大屏开启类型配置参数-开通对象类型编码不能为空",false);
Assert.isNull(queryConfItemMatchAnswerDetailComReqDto_2.getIsPlatData(),"D2查询空间大屏配置参数(公共)-D2查空间大屏开启类型配置参数-是否标准答案不能为空",false);
      queryConfItemMatchAnswerDetailComRespDto_4 = confSchemeService.queryConfItemMatchAnswerDetailCom(queryConfItemMatchAnswerDetailComReqDto_2)/*vcase invoke isSameApp*/;




//步骤4: D2-3查配置项匹配答案详情(公共)（跨服务） - queryConfItemMatchAnswerDetailCom
     QueryConfItemMatchAnswerDetailComRespDto queryConfItemMatchAnswerDetailComRespDto_6 = null;
    QueryConfItemMatchAnswerDetailComReqDto queryConfItemMatchAnswerDetailComReqDto_3=new QueryConfItemMatchAnswerDetailComReqDto();
  queryConfItemMatchAnswerDetailComReqDto_3.setResultAspObjType("TENANT_SPACE");//sourceId:2014389_1
queryConfItemMatchAnswerDetailComReqDto_3.setConfItemCode("DASHBOARD_COLOR_STYLE");//CUSTOM_CONVENTION//sourceId:2014390_1
queryConfItemMatchAnswerDetailComReqDto_3.setIsPlatData("FALSE");//sourceId:2014391_1
if(reqDto!=null){
      queryConfItemMatchAnswerDetailComReqDto_3.setResultAspObjId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:2014388_1
    }

    /*D2查空间大屏颜色风格[2486]   */
    Assert.isNull(queryConfItemMatchAnswerDetailComReqDto_3.getResultAspObjId(),"D2查询空间大屏配置参数(公共)-D2查空间大屏颜色风格-开通对象ID不能为空",false);
Assert.isNull(queryConfItemMatchAnswerDetailComReqDto_3.getResultAspObjType(),"D2查询空间大屏配置参数(公共)-D2查空间大屏颜色风格-开通对象类型编码不能为空",false);
Assert.isNull(queryConfItemMatchAnswerDetailComReqDto_3.getConfItemCode(),"D2查询空间大屏配置参数(公共)-D2查空间大屏颜色风格-配置项标识不能为空",false);
Assert.isNull(queryConfItemMatchAnswerDetailComReqDto_3.getIsPlatData(),"D2查询空间大屏配置参数(公共)-D2查空间大屏颜色风格-是否标准答案不能为空",false);
      queryConfItemMatchAnswerDetailComRespDto_6 = confSchemeService.queryConfItemMatchAnswerDetailCom(queryConfItemMatchAnswerDetailComReqDto_3)/*vcase invoke isSameApp*/;




//步骤5: M2执行第十接收字段（特殊方法） - implementTenReceivingField
     //ModelCode: receptionService
        ImplementTenReceivingFieldRespDto receptionServiceRes_1 = null;
    if(queryConfItemMatchAnswerDetailComRespDto !=null){
          ImplementTenReceivingFieldReqDto receptionServiceReq_1=new ImplementTenReceivingFieldReqDto();
  if(queryConfItemMatchAnswerDetailComRespDto!=null){
      receptionServiceReq_1.setDashboardEntranceConf(queryConfItemMatchAnswerDetailComRespDto.getEndValue());//SimpleFieldAssign//sourceId:1866964_1
    }
if(queryConfItemMatchAnswerDetailComRespDto_2!=null){
      receptionServiceReq_1.setIsOpenDashboardEntrance(queryConfItemMatchAnswerDetailComRespDto_2.getEndValue());//SimpleFieldAssign//sourceId:1866965_1
    }
if(queryConfItemMatchAnswerDetailComRespDto_4!=null){
      receptionServiceReq_1.setDashboardOpenTypeCode(queryConfItemMatchAnswerDetailComRespDto_4.getEndValue());//SimpleFieldAssign//sourceId:1866966_1
    }
if(queryConfItemMatchAnswerDetailComRespDto_6!=null){
      receptionServiceReq_1.setDashboardColorStyle(queryConfItemMatchAnswerDetailComRespDto_6.getEndValue());//SimpleFieldAssign//sourceId:2014395_1
    }

    /*M2接收空间大屏配置参数出参[8782]  用于特殊方法接收上游入参。 */

      receptionServiceRes_1 = nbDashboradStandardData.implementTenReceivingField(receptionServiceReq_1);


      receptionServiceRes_2 = receptionServiceRes_1;
           }

QuerySpacDashboardConfVariableDetailComRespDto retData = new QuerySpacDashboardConfVariableDetailComRespDto();
  if(receptionServiceRes_2!=null){
      retData.setDashboardEntranceConf(receptionServiceRes_2.getDashboardEntranceConf());//SimpleFieldAssign//sourceId:1866970_1
retData.setIsOpenDashboardEntrance(receptionServiceRes_2.getIsOpenDashboardEntrance());//SimpleFieldAssign//sourceId:1866971_1
retData.setDashboardOpenTypeCode(receptionServiceRes_2.getDashboardOpenTypeCode());//SimpleFieldAssign//sourceId:1866972_1
retData.setDashboardColorStyle(receptionServiceRes_2.getDashboardColorStyle());//SimpleFieldAssign//sourceId:2014397_1
    }




return retData;
  }
/**
   * D2更新目标规划大屏版本（Redis）(公共)[9829]
   * gen by moon at 6/20/2024, 6:07:53 PM
   */
  @Trace(operationName = "D2更新目标规划大屏版本（Redis）(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public RefreshTargetPlanDashboradVersionComRespDto refreshTargetPlanDashboradVersionCom(RefreshTargetPlanDashboradVersionComReqDto reqDto){


      //virtualUsage D2分析大屏版本类型及名称(公共)  70372
      AnalysisDashboardVersionTypeAndNameComRespDto analysisDashboardVersionTypeAndNameComRespDto = null;
    AnalysisDashboardVersionTypeAndNameComReqDto analysisDashboardVersionTypeAndNameComReqDto=new AnalysisDashboardVersionTypeAndNameComReqDto();
  if(reqDto!=null){
      analysisDashboardVersionTypeAndNameComReqDto.setDataType(reqDto.getDataType());//SimpleFieldAssign//sourceId:1878900_1_70372
analysisDashboardVersionTypeAndNameComReqDto.setTargetCycleContentTypeCode(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1878901_1_70372
    }

    /*D2分析大屏版本类型及名称(公共)[9834]   */
    Assert.isNull(analysisDashboardVersionTypeAndNameComReqDto.getDataType(),"D2更新目标规划大屏版本（Redis）(公共)-D2分析大屏版本类型及名称(公共)-数据点类型不能为空",false);
Assert.isNull(analysisDashboardVersionTypeAndNameComReqDto.getTargetCycleContentTypeCode(),"D2更新目标规划大屏版本（Redis）(公共)-D2分析大屏版本类型及名称(公共)-关联目标内容类型编码不能为空",false);
      analysisDashboardVersionTypeAndNameComRespDto = dashboardOrgService.analysisDashboardVersionTypeAndNameCom(analysisDashboardVersionTypeAndNameComReqDto)/*vcase invoke isSameApp*/;



if((reqDto!= null&&  reqDto.getTargetCycleContentTypeCode() !=null && reqDto.getTargetCycleContentTypeCode().equals("TARGET"))&&(reqDto!= null&&  reqDto.getParentSubMidCycleType() !=null && reqDto.getParentSubMidCycleType().equals("PARENT_CYCLE")||reqDto!= null&&  reqDto.getParentSubMidCycleType() !=null && reqDto.getParentSubMidCycleType().equals("SUB_CYCLE")||reqDto!= null&&  reqDto.getParentSubMidCycleType() !=null && reqDto.getParentSubMidCycleType().equals("MID_CYCLE"))) {
        //if(D2更新目标规划大屏版本（Redis）(公共).关联目标内容类型编码 等于 目标 and (D2更新目标规划大屏版本（Redis）(公共).父子中过程周期类型 等于 父周期 or D2更新目标规划大屏版本（Redis）(公共).父子中过程周期类型 等于 子周期 or D2更新目标规划大屏版本（Redis）(公共).父子中过程周期类型 等于 中期))  70233

AddSpaceDashboradVersionComRespDto addSpaceDashboradVersionComRespDto = null;
    if(analysisDashboardVersionTypeAndNameComRespDto !=null){
    AddSpaceDashboradVersionComReqDto addSpaceDashboradVersionComReqDto=new AddSpaceDashboradVersionComReqDto();
  if(reqDto!=null){
      addSpaceDashboradVersionComReqDto.setBusinessDataObject(reqDto.getBusinessDataObject());//SimpleFieldAssign//sourceId:1876435_1_70234
addSpaceDashboradVersionComReqDto.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1876443_1_70234
addSpaceDashboradVersionComReqDto.setEntityId(reqDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1876439_1_70234
addSpaceDashboradVersionComReqDto.setThemeContentId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1876440_1_70234
addSpaceDashboradVersionComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1876441_1_70234
    }
if(analysisDashboardVersionTypeAndNameComRespDto!=null){
      addSpaceDashboradVersionComReqDto.setDashboradName(analysisDashboardVersionTypeAndNameComRespDto.getDashboradName());//SimpleFieldAssign//sourceId:1876436_1_70234
addSpaceDashboradVersionComReqDto.setDashboradTypeCode(analysisDashboardVersionTypeAndNameComRespDto.getDashboradTypeCode());//SimpleFieldAssign//sourceId:1876437_1_70234
    }

    /*D2新增空间大屏版本（用于高层目标根节点）[9758]   */
    Assert.isNull(addSpaceDashboradVersionComReqDto.getBusinessDataObject(),"D2更新目标规划大屏版本（Redis）(公共)-D2新增空间大屏版本（用于高层目标根节点）-业务数据对象不能为空",false);
Assert.isNull(addSpaceDashboradVersionComReqDto.getDashboradName(),"D2更新目标规划大屏版本（Redis）(公共)-D2新增空间大屏版本（用于高层目标根节点）-大屏名称不能为空",false);
Assert.isNull(addSpaceDashboradVersionComReqDto.getDashboradTypeCode(),"D2更新目标规划大屏版本（Redis）(公共)-D2新增空间大屏版本（用于高层目标根节点）-大屏类型不能为空",false);
Assert.isNull(addSpaceDashboradVersionComReqDto.getCycleId(),"D2更新目标规划大屏版本（Redis）(公共)-D2新增空间大屏版本（用于高层目标根节点）-归属周期ID不能为空",false);
Assert.isNull(addSpaceDashboradVersionComReqDto.getEntityId(),"D2更新目标规划大屏版本（Redis）(公共)-D2新增空间大屏版本（用于高层目标根节点）-归属内容表主键ID不能为空",false);
Assert.isNull(addSpaceDashboradVersionComReqDto.getSpaceId(),"D2更新目标规划大屏版本（Redis）(公共)-D2新增空间大屏版本（用于高层目标根节点）-空间ID不能为空",false);
      addSpaceDashboradVersionComRespDto = addSpaceDashboradVersionCom(addSpaceDashboradVersionComReqDto)/*vcase invoke 同服务,同domain*/;



           }
      }
else if((reqDto!= null&&  reqDto.getTargetCycleContentTypeCode() !=null && reqDto.getTargetCycleContentTypeCode().equals("OBJECTIVE")&&reqDto!= null&&  reqDto.getIsUseFirstDept() !=null && reqDto.getIsUseFirstDept().equals("TRUE"))&&(reqDto!= null&&  reqDto.getParentSubMidCycleType() !=null && reqDto.getParentSubMidCycleType().equals("PARENT_CYCLE")||reqDto!= null&&  reqDto.getParentSubMidCycleType() !=null && reqDto.getParentSubMidCycleType().equals("SUB_CYCLE")||reqDto!= null&&  reqDto.getParentSubMidCycleType() !=null && reqDto.getParentSubMidCycleType().equals("MID_CYCLE"))){
       //elseif((D2更新目标规划大屏版本（Redis）(公共).关联目标内容类型编码 等于 指标 and D2更新目标规划大屏版本（Redis）(公共).是否用于一级部门 等于 是) and (D2更新目标规划大屏版本（Redis）(公共).父子中过程周期类型 等于 父周期 or D2更新目标规划大屏版本（Redis）(公共).父子中过程周期类型 等于 子周期 or D2更新目标规划大屏版本（Redis）(公共).父子中过程周期类型 等于 中期))  70352

AddSpaceDashboradVersionComRespDto addSpaceDashboradVersionComRespDto_1 = null;
    if(analysisDashboardVersionTypeAndNameComRespDto !=null){
          AddSpaceDashboradVersionComReqDto addSpaceDashboradVersionComReqDto_1=new AddSpaceDashboradVersionComReqDto();
  if(reqDto!=null){
      addSpaceDashboradVersionComReqDto_1.setBusinessDataObject(reqDto.getBusinessDataObject());//SimpleFieldAssign//sourceId:1878367_1_70354
addSpaceDashboradVersionComReqDto_1.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1878374_1_70354
addSpaceDashboradVersionComReqDto_1.setEntityId(reqDto.getDashboradPrimaryDeptId());//SimpleFieldAssign//sourceId:1878370_1_70354
addSpaceDashboradVersionComReqDto_1.setThemeContentId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1878371_1_70354
addSpaceDashboradVersionComReqDto_1.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1878372_1_70354
    }
if(analysisDashboardVersionTypeAndNameComRespDto!=null){
      addSpaceDashboradVersionComReqDto_1.setDashboradName(analysisDashboardVersionTypeAndNameComRespDto.getDashboradName());//SimpleFieldAssign//sourceId:1878368_1_70354
addSpaceDashboradVersionComReqDto_1.setDashboradTypeCode(analysisDashboardVersionTypeAndNameComRespDto.getDashboradTypeCode());//SimpleFieldAssign//sourceId:1878369_1_70354
    }

    /*D2新增空间大屏版本（用于中层部门根节点）[9758]   */
    Assert.isNull(addSpaceDashboradVersionComReqDto_1.getBusinessDataObject(),"D2更新目标规划大屏版本（Redis）(公共)-D2新增空间大屏版本（用于中层部门根节点）-业务数据对象不能为空",false);
Assert.isNull(addSpaceDashboradVersionComReqDto_1.getDashboradName(),"D2更新目标规划大屏版本（Redis）(公共)-D2新增空间大屏版本（用于中层部门根节点）-大屏名称不能为空",false);
Assert.isNull(addSpaceDashboradVersionComReqDto_1.getDashboradTypeCode(),"D2更新目标规划大屏版本（Redis）(公共)-D2新增空间大屏版本（用于中层部门根节点）-大屏类型不能为空",false);
Assert.isNull(addSpaceDashboradVersionComReqDto_1.getCycleId(),"D2更新目标规划大屏版本（Redis）(公共)-D2新增空间大屏版本（用于中层部门根节点）-归属周期ID不能为空",false);
Assert.isNull(addSpaceDashboradVersionComReqDto_1.getEntityId(),"D2更新目标规划大屏版本（Redis）(公共)-D2新增空间大屏版本（用于中层部门根节点）-归属内容表主键ID不能为空",false);
Assert.isNull(addSpaceDashboradVersionComReqDto_1.getThemeContentId(),"D2更新目标规划大屏版本（Redis）(公共)-D2新增空间大屏版本（用于中层部门根节点）-主题内容ID不能为空",false);
Assert.isNull(addSpaceDashboradVersionComReqDto_1.getSpaceId(),"D2更新目标规划大屏版本（Redis）(公共)-D2新增空间大屏版本（用于中层部门根节点）-空间ID不能为空",false);
      addSpaceDashboradVersionComRespDto_1 = addSpaceDashboradVersionCom(addSpaceDashboradVersionComReqDto_1)/*vcase invoke 同服务,同domain*/;



           }
      }
RefreshTargetPlanDashboradVersionComRespDto retData = new RefreshTargetPlanDashboradVersionComRespDto();





return retData;
  }
  //
}
